<% link = (custom_field.value =~ %r{^https?://}) ? custom_field.value : "http://#{custom_field.value}" %>
<%= link_to(h(custom_field.value), link, :class => 'external') %>
